package com.mini.dubbo.api;

import java.net.InetAddress;
import java.net.UnknownHostException;

/**
 * @author yzy
 * Created by yzy on 2021-12-04
 */
public class RedisConfig {
    public static final int redis_port = 6379;
    public static final String redis_address = "127.0.0.1";

    public static int servicePort = 9999;
    public static String severIP;

    static {
        try {
            //获取本机局域网IP写到zk
            severIP = InetAddress.getLocalHost().getHostAddress();
        } catch (UnknownHostException e) {
            e.printStackTrace();
        }
    }

    public static String serviceAddress = severIP + ":" + servicePort;

}
